package uz.rt.linac;

public class Mlc extends LinacComponent
{
    protected final Leaf[] bank1 = null;
    protected final Leaf[] bank2 = null;

    public boolean isValid()
    {
        if (bank1.length != bank2.length) throw new RuntimeException("Mlc bank sizes must be equal");
        for (int i = 0; i < bank1.length; i++)
            if (bank1[i].isValid() || bank2[i].isValid()) return false;
        return true;
    }
}
